<?php
/**
 * 会员点赞会员
 * @return
 * @author yuncran@126.com
 */

namespace app\model;

use app\BaseModel;

class UserGiveModel extends BaseModel
{

    protected $name = 'user_give';

    protected $pk = "id";

    protected $append = ['user'];


    public function getUserAttr($value, $data)
    {
        return UserModel::getUserInfoFind(['id' => $data['to_user_id']]);
    }

}